package com.zhang.learnnacos.api.app2.dto;

import lombok.Data;
import lombok.NonNull;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Date;

@Data
@Slf4j
@RequestMapping("aa")
public class UserDto<T> {

    static {
        log.info("UserDto static block");
    }

    private String name;

    private String email;

    private String phone;

    private Date startDate;

    public void aa() {
        log.info("aa");
    }

    @RequestMapping(value = "aa")
    public void aa(String aa, T t) {
        log.info("bb");
    }

    /**
     * aasdf
     */
    @ToString.Exclude
    @NonNull
    private T t;

    private String age;
}
